<?php

/*$player = new player;
$rp = new rp;

$standings = $player->get();

$points = $rp->get();

$smarty->assign('standings', $standings);
$smarty->assign('rp', $points);*/

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Datum in het verleden
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
                                                     // Altijd veranderd
header("Cache-Control: no-store, no-cache, must-revalidate");  // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");                          // HTTP/1.0

require('./core/Smarty_oRs.php');
require('./includes/config.php');
require('./includes/func_database.php');
require('./includes/func_signups.php');
require('./includes/func_rp.php');
require('./includes/func_rp_category.php');
require('./includes/func_raid.php');

$dbh = initConnection();

$signup = new signup;
$rp = new rp;
$rp_category = new rp_category();
$raid = new raid;

$smarty = new Smarty_oRs;

$raid_id = $_GET['rid'];

$user_id = $_GET['uid'];

$raid_info = $raid->get($raid_id);

$raid_info = $raid_info[0];

$category_info = $rp_category->get($raid_info['rp_category_id']);

$category_info = $category_info[0];

$characters = $rp->get_balance($raid_id);

$characters = $characters[$raid_info['rp_category_id']];

$smarty->assign('category_info', $category_info);

$smarty->assign('characters', $characters);

$smarty->assign('user_id', $user_id);

$smarty->assign('raid_info', $raid_info);

$smarty->display('raid_balance.tpl', $_SESSION['uid']);

?>
